EventSet
objects.EventSet()
BaseModel describing the expected variables and data types for parameters of EventSet.
An EventSet is a collection of events that can be used to create a scenario and perform a probabilistoc risk assessment.
Attributes
name :
str
-
The name of the event.
description : str, default=""
-
The description of the event.
mode : Mode, default=Mode.risk
-
The mode of the event.
sub_events :
List
[SubEventModel
]-
The sub events of the event set.
Methods
Name | Description |
---|---|
load_file | Load object from file. |
load_sub_events | Load sub events from a list or from a file path. |
load_file
| str | os.PathLike) objects.EventSet.load_file(file_path: Path
Load object from file.
load_sub_events
objects.EventSet.load_sub_events(= None,
sub_events: Optional[List[Event]] = None,
file_path: Optional[Path] )
Load sub events from a list or from a file path.